﻿#nullable enable

using System;

namespace PHMEE.EnergyEfficiency;

public sealed class BunkerReport
{
    public DateTime Ts { get; set; }

    /// <summary>
    /// 在各种用户填报的报告中，id 为船舶 Id
    /// </summary>
    public Guid Id { get; set; }

    public string BunkerDeliveryNoteNumber { get; set; } = null!;

    public DateTime BunkerDeliveryDateTime { get; set; }

    public FuelType FuelType { get; set; }

    public float Mass { get; set; }

    /// <summary>
    /// 创建时间（UTC）
    /// </summary>
    public DateTime CreationTime { get; set; }

    /// <summary>
    /// 最后修改时间（UTC）
    /// </summary>
    public DateTime LastModifiedTime { get; set; }

    public BunkerReport()
    {
    }
    
    public BunkerReport(DateTime ts, Guid id, string bunkerDeliveryNoteNumber, DateTime bunkerDeliveryDateTime, FuelType fuelType, float mass, DateTime creationTime, DateTime lastModifiedTime)
    {
        Ts = ts;
        Id = id;
        BunkerDeliveryNoteNumber = bunkerDeliveryNoteNumber;
        BunkerDeliveryDateTime = bunkerDeliveryDateTime;
        FuelType = fuelType;
        Mass = mass;
        CreationTime = creationTime;
        LastModifiedTime = lastModifiedTime;
    }
}